import { request } from '@/api/request';
import { APISAFEINDEX } from '@/common';

//获取占比系数
export const getFormulaNum = () =>
  request<{
    a1?: string | number;
    a2?: string | number;
    a3?: string | number;
  }>({
    method: 'get',
    url: `${APISAFEINDEX}safetyIndexRatio/getRatio`,
  });

//设置占比系数
export const setFormulaNum = (params: any) =>
  request({
    url: `${APISAFEINDEX}safetyIndexRatio/setRatio`,
    params,
  });
